package com.mc.fil.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mc.common.annotation.Excel;
import com.mc.common.core.domain.BaseEntity;

/**
 * 采种田采收记录对象 fil_harvest_records
 *
 * @author mc
 * @date 2021-04-15
 */
public class FilHarvestRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 批次号 */
    @Excel(name = "批次号")
    private Long id;

    /** 采种田编号 */
    @Excel(name = "采种田编号")
    private String filId;

    /** 采收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采收时间" , width = 30, dateFormat = "yyyy-MM-dd")
    private Date breed;

    /** 采收方式及采收年限 */
    @Excel(name = "采收方式及采收年限")
    private String methodHarvest;

    /** 亩产量 */
    @Excel(name = "亩产量")
    private String areaYield;

    /** 执行人编号 */
    @Excel(name = "执行人编号")
    private String workUserId;

    private String remark;

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    private List<FilMultimedia> photos;

    public List<FilMultimedia> getPhotos() {
        return photos;
    }

    public void setPhotos(List<FilMultimedia> photos) {
        this.photos = photos;
    }

    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFilId(String filId)
    {
        this.filId = filId;
    }

    public String getFilId()
    {
        return filId;
    }
    public void setBreed(Date breed)
    {
        this.breed = breed;
    }

    public Date getBreed()
    {
        return breed;
    }
    public void setMethodHarvest(String methodHarvest)
    {
        this.methodHarvest = methodHarvest;
    }

    public String getMethodHarvest()
    {
        return methodHarvest;
    }
    public void setAreaYield(String areaYield)
    {
        this.areaYield = areaYield;
    }

    public String getAreaYield()
    {
        return areaYield;
    }
    public void setWorkUserId(String workUserId)
    {
        this.workUserId = workUserId;
    }

    public String getWorkUserId()
    {
        return workUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedTime", getUpdatedTime())
                .append("id", getId())
                .append("filId", getFilId())
                .append("breed", getBreed())
                .append("methodHarvest", getMethodHarvest())
                .append("areaYield", getAreaYield())
                .append("workUserId", getWorkUserId())
                .append("photos", getPhotos())
                .append("remark", getRemark())
                .toString();
    }
}